package com.company.project;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EntityScan("com.company.project.model")//扫描实体类
@ComponentScan(basePackages={"com.company.project.service"})//扫描服务层
@ComponentScan(basePackages={"com.company.project.controller"})//扫描控制层
@ComponentScan(basePackages={"com.company.project.configurer"})//扫描配置层
@ComponentScan(basePackages={"com.company.project.websocket"})//扫描配置层
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }
}

